import Vue from "vue";
import ElementUI from "element-ui";
import Router from "vue-router";
import Home from "@/pages/home/home.vue"; //主页
import Shop from "@/pages/shop/shop.vue"; //购物
import Count from "@/pages/shop/components/count/count.vue"; //购物
import Trade from "@/pages/merchant/trade/trade.vue"; //购物

import scroll from "vue-seamless-scroll";
import VueAwesomeSwiper from "vue-awesome-swiper";
import "element-ui/lib/theme-chalk/index.css";
import "swiper/css/swiper.css";

Vue.use(Router);
Vue.use(ElementUI);
Vue.use(scroll);
Vue.use(VueAwesomeSwiper);

export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      component: Home,
    },
    {
      path: "/shop",
      component: Shop,
    },
    {
      path: "/shop/count",
      component: Count,
    },
    ,
    {
      path: "/merchant/trade",
      component: Trade,
    },
  ],
});
